<?php
namespace ctrl\demo;

use of_base_com_kv;

class redis
{
    //http://ec.com/?c=demo_redis&a=set
    public static function set()
    {
        of_base_com_kv::link('default')->set('test', json_encode(['token' => '11111111']));
    }

    //http://ec.com/?c=demo_redis&a=get
    public static function get()
    {
        $token = of_base_com_kv::link('default')->get('test');
        print_r($token);
    }
}